package com.shijie.mapper;

import com.shijie.domain.entity.UserOrders;
import com.shijie.core.Mapper;

import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/*
 *  @author: smart boy
 *  @date: 2018-08-06
 */
public interface  UserOrdersMapper extends Mapper<UserOrders>{

    BigDecimal selectAmount(@Param("paymentSerial") String paymentSerial);

    /**
     * 待支付／待收货／已完成／已取消 的角标
     * @param userId
     * @return
     */
    List<Map<String,String>> getSubscriptsByUserid(@Param("userId") Integer userId);
    
	public List<Map<String,Object>> queryStatisticByDays(@Param("startAt")Date startAt,@Param("endAt")Date endAt);
	
	public List<Map<String,Object>> queryStatisticByMonths(@Param("startAt")Date startAt,@Param("endAt")Date endAt);

}
